//
//  TYZCheckButton.h
//  VehicleInsuranceSupport
//
//  Created by TangBin on 2019/11/25.
//  Copyright © 2019 TangBin. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum
{
    CheckButtonStyleDefault = 0,
    CheckButtonStyleBox = 1,
    CheckButtonStyleRadio = 2
} CheckButtonStyle;

@interface TYZCheckButton : UIControl
@property (nonatomic, strong) UILabel *label;//按钮的标题文本
@property (nonatomic, strong) UIImageView *icon;
@property (nonatomic, assign) BOOL checked;//是否选中状态
@property (nonatomic, strong) id value;//按钮所包含的数据
@property (nonatomic, weak) id delegate;
@property (nonatomic, assign) CheckButtonStyle style;
@property (nonatomic, strong) NSString *checkname;
@property (nonatomic, strong) NSString *uncheckname;

/**
 *  是否是点击
 */
@property (nonatomic, assign) BOOL isClicked;


- (CheckButtonStyle)_style;
- (void)setStyle:(CheckButtonStyle)st;
- (BOOL)_checked;
- (void)setChecked:(BOOL)ck;
@end

NS_ASSUME_NONNULL_END
